home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 0095 / imscan.bat < prev    next >
DOS Batch File  |  1997-03-24  |  509b  |  23 lines

  1. ECHO OFF
  2. IF "%1"=="" goto help
  3. IM /VL /N %2 %3 %4 /P%1
  4. IF ERRORLEVEL 128 GOTO FAILURE
  5. IF ERRORLEVEL 64 GOTO VIRUS
  6. IF NOT ERRORLEVEL 24 GOTO DONE
  7. ECHO IM found a possible problem
  8. GOTO DONE
  9. :Help
  10. ECHO  
  11. ECHO The syntax is "IMSCAN C:\dir"
  12. ECHO   where c: is the disk you wish to scan, and \dir is the optional directory
  13. ECHO  
  14. GOTO Exit
  15. :Failure
  16. ECHO IM unable to execute
  17. GOTO EXIT
  18. :VIRUS
  19. ECHO IM found signs of a virus
  20. :DONE
  21. ECHO IM asked to scan %1 and all all lower subdirectories
  22. :Exit
  23.